/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package towerdefence.model.color;

import java.awt.Color;

/**
 *
 * @author Gussoh
 */
public class HTMLColorCreator extends ColorCreator {

    private Color[] colors = new Color[] {
        new Color(0, 255, 255),
        new Color(0, 128, 0),
        new Color(0, 0, 128),
        new Color(192, 192, 192),
        new Color(0, 0, 0),
        new Color(128, 128, 128),
        new Color(128, 128, 0),
        new Color(0, 128, 128),
        new Color(0, 0, 255),
        new Color(0, 255, 0),
        new Color(128, 0, 128),
        new Color(255, 255, 255),
        new Color(255, 0, 255),
        new Color(128, 0, 0),
        new Color(255, 0, 0),
        new Color(255, 255, 0)
    };
    private int counter = random.nextInt(colors.length);
    
    @Override
    public Color getNextColor() {
        counter += 1;
        counter %= colors.length;
        return colors[counter];
    }

    @Override
    protected void construct() {
    }

}
